<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>添加名单 - 随机点名系统</title>
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
    <div class="container">
        <h1 class="title">添加人员</h1>
        
        <div class="card">
            <form id="addForm" class="add-form">
                <div class="form-group">
                    <label for="nameInput">姓名</label>
                    <input type="text" id="nameInput" placeholder="请输入姓名" required>
                </div>
                
                <div class="button-container">
                    <button type="submit" class="btn primary-btn">添加</button>
                    <a href="index.html" class="btn secondary-btn">返回主页</a>
                </div>
            </form>
        </div>
        
        <div class="name-list-container">
            <h2>已添加人员</h2>
            <ul id="nameList" class="name-list"></ul>
            <div class="button-container">
                <button id="clearBtn" class="btn danger-btn">清空名单</button>
            </div>
        </div>
    </div>

    <script src="js/add.js"></script>
</body>
</html> 